package Redis

type RedisBuilderInterface interface {
	//设置是否是集群模式 默认为false
	SetCluster(isCluster bool) RedisBuilderInterface
	GetCluster() bool

	//设置ip  主要为ip:端口
	SetHost(host string) RedisBuilderInterface
	GetHost() string

	//设置密码
	SetPassword(password string) RedisBuilderInterface
	GetPassword() string

	//使用设置的数据库
	SetDb(db int) RedisBuilderInterface
	GetDb() int

	//设置最大重试次数
	SetMaxRetries(maxRetries int) RedisBuilderInterface
	GetMaxRetries() int

	//设置连接池大小
	SetPoolSize(poolSize int) RedisBuilderInterface
	GetPoolSize() int

	//读超时
	SetReadTimeOut(readTimeout int) RedisBuilderInterface
	GetReadTimeOut() int

	//连接池超时
	SetPoolTimeOut(poolTimeout int) RedisBuilderInterface
	GetPoolTimeOut() int

	//建立连接超时
	SetDialTimeout(dialTimeout int) RedisBuilderInterface
	GetDialTimeOut() int
}
